Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Polycone #451

Merged
merged 7 commits into from
Jan 24, 2025
Merged

Add Polycone #451

merged 7 commits into from
Jan 24, 2025

Conversation

fhagemann
Copy link
Collaborator

I added polycone to the geometries, which can be defined as a set of points in r and z:

polycone:
  r: [0, 35, 35, 24.42, 5, 5, 0]
  z: [0, 0, 20, 80, 80, 25, 25]

It follows the same logic as the G4GenericPolycone.

Note: I also updated the example inverted coaxial detector geometry to use polycone instead of a difference of tubes and cones. The results seem to be identical (all tests still pass). However, we can discuss to revert this and to keep the original file as is (especially using difference, which might be good guidance for people wanting to do more complicated CSG stuff.

This should close #449.

@fhagemann fhagemann added enhancement Improvement of existing features convenience Improve user-friendliness new feature Add new feature labels Jan 22, 2025
@fhagemann
Copy link
Collaborator Author

So, I updated the geometry in the splitted inverted coaxial example config file now, so that it will not affect anything in the ICPC tutorial. However, the Geant4 tests will now run with the polycone geometry to have some testing there.

@@ -56,7 +56,7 @@ end
@testset "Run Geant4 simulations" begin

# Create G4JLApplication
sim = Simulation{T}(SSD_examples[:InvertedCoax])
sim = Simulation{T}(SSD_examples[:InvertedCoaxInCryostat])
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way, we will also try out parsing another material and more geometries.

test/test_geant4.jl Outdated Show resolved Hide resolved
@fhagemann fhagemann merged commit 22bcccb into main Jan 24, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
convenience Improve user-friendliness enhancement Improvement of existing features new feature Add new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implementation of Polycone geometries
1 participant